/*********************************************************************
* File: mushroom.h
* Create Mushrooms
* Author: 10520418 Bui Huu Hiep
**********************************************************************/
#pragma once
#ifndef _MUSHROOM_H
#define _MUSHROOM_H

#include "GameObject.h"
#include "Brick.h"

// Set lai
#define MUSH_VX 80
#define MUSH_VY 500

/********************************************
* Mushroom
* Inheritance form class Obj
* Create Mushroom
********************************************/
class Mushroom : public GameObject
{
private:
	float _temp_y;
public:
	Mushroom(float posX, float posY, float width, float height, Resources* res, int kind, int number, int depth);
	~Mushroom(void);

	void Update(float time, QNode* &Tree);
	void Render(LPD3DXSPRITE spriteHandler, Viewport* viewport);
	void Move(float time, vector<GameObject*> listObj);
	void ChangeState(char state);
};
#endif
